package com.puyuba.puyuba.view.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.puyuba.puyuba.R;
import com.puyuba.puyuba.bean.MsgListBean;

public class MsgListAdatper extends BaseQuickAdapter<MsgListBean.ListBean,BaseViewHolder> {

    public MsgListAdatper(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, MsgListBean.ListBean item) {

        helper.setText(R.id.tv_content,item.getContent());
        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_time,item.getTime_str());
    }

    
}
